Skip to content

Disable mdblocales by default in configure#1651

Open
tuhaihe wants to merge 2 commits intoapache:mainfrom
tuhaihe:disable-mdblocales-patch
Open

Disable mdblocales by default in configure#1651
tuhaihe wants to merge 2 commits intoapache:mainfrom
tuhaihe:disable-mdblocales-patch

Conversation

@tuhaihe
Copy link
Copy Markdown
Member

@tuhaihe tuhaihe commented Mar 31, 2026

Changed the default value of --with-mdblocales from 'yes' to 'no' in configure.ac. This prevents enabling custom locales by default, which require additional packages and may cause compatibility issues across different system environments (e.g., Rocky Linux 8 vs 9 with different libc versions). Users who need mdblocales can explicitly enable it with --with-mdblocales option.

Regenerated configure file using autoconf 2.69 on Rocky Linux 8.

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


sed -i '' '/define CONFIGURE_ARGS/s,\([^\\]\)\\\$\$,\1\\\\$$,g' src/include/pg_config.h
;;
*)
sed -i '/define CONFIGURE_ARGS/s,\([^\\]\)\\\$\$,\1\\\\$$,g' src/include/pg_config.h
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for darwin platform, need keep it.

Copy link
Copy Markdown
Member Author

@tuhaihe tuhaihe Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhangyue1818 Hi, could you take a look at this? The best way is to define in configure.ac, then regenerate configure, not edit it directly. Or else, cannot make sure it's not covered in the future.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now fix it in b5d81d0.

Copy link
Copy Markdown
Contributor

@leborchuk leborchuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, configure already use --with-mdblocales https://github.com/apache/cloudberry/blob/main/devops/build/automation/cloudberry/scripts/configure-cloudberry.sh#L149

--without-mdblocales looks like a mistake and should be deleted

tuhaihe added 2 commits April 1, 2026 15:39
Changed the default value of `--with-mdblocales` from 'yes' to 'no' in
configure.ac. This prevents enabling custom locales by default, which
require additional packages and may cause compatibility issues across
different system environments (e.g., Rocky Linux 8 vs 9 with different
libc versions). Users who need mdblocales can explicitly enable it with
`--with-mdblocales` option.

Regenerated configure file using autoconf 2.69 on Rocky Linux 8.
@tuhaihe tuhaihe force-pushed the disable-mdblocales-patch branch from e2dbdad to 5311489 Compare April 1, 2026 07:42
@tuhaihe tuhaihe requested a review from yjhjstz April 1, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants